package com.tgit.sso.paltform.central.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;

/**
 * ClassName: ReqUserRegister
 * date: 2019/11/25 18:32
 * Description: 用户注册入参
 * @author fanzj@tgit.com
 * @since JDK 1.8
 */
@Data
public class ReqUserRegister implements Serializable {
    private static final long serialVersionUID = -9209705369596243088L;
    @NotEmpty(message = "用户名不能为空")
    private String userName;
    @NotEmpty(message = "密码不能为空")
    private String authpwd;
    @NotEmpty(message = "验证码不能为空")
    private String validCode;
    @Email(message = "邮箱格式不正确")
    @NotEmpty(message = "邮箱格式不正确")
    private String email;
}
